import * as React from 'react';
import {observer} from 'mobx-react'
import styles from './index.scss';
import Left from './Left'
import Right from './Right'
import {IEquipType} from "../../../type/firstType";

interface IProps {
    dataY: number[]// 图表的种类Y
    dataX: string[]// 图表的种类X
    equipConsume: IEquipType[]
}

@observer
class Home extends React.Component<IProps> {

    constructor(props) {
        super(props);
    }


    public render() {
        const {dataY,dataX,equipConsume} = this.props
        return (
            <div className={styles.botTwo}>
                <Left title='当年人工消耗情况' dataY={dataY} dataX={dataX} />
                <Right equipConsume={equipConsume} />
            </div>
        );
    }
}

export default Home;
